package com.youlu.campus.base.base;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author zhuhuaiqi
 * @date 2020/8/11 20:42
 */
public class Constants {

    public static Map<String, Long> cacheMap = new ConcurrentHashMap<String, Long>();
    public static final String EXCEPTION_MESSAGE_CODE_SEPARATOR = "@";
    public static final String REDIS_AUTH_TOKEN_ACCESS_TTL = "campus:auth:token:access:ttl:userId:%s:deviceType:%s";

    public static final String REDIS_AUTH_USER_STATUS_POLLING_SUSPEND = "campus:tasks:user:status:polling:suspend:%d";

    /**
     * APP推送渠道
     */
    public static final String REDIS_APP_PUSH_USER_ID = "campus:app:push:userId:%s";

    public static final String REDIS_AUTH_USER_TOKEN = "campus:auth:token:userId:%s";

    public static final String TASK_INVITE_TIPS = "你真棒！已邀请%d人，再邀请%d人可获得%s";

    public static final String TASK_SALE_TIPS = "你真棒！你完成%d组营销任务，再完成%d组可获得%s";

    public static final String defaultHead = "https://qiniu.gqgood.com/img634ebad9e2334b39bd88181a3ac6530etouxiang.jpg";
    /**
     * 证书编号
     */
    public static final String CA_NO_PREFIX = "campus:ca:no:%s";
}
